package com.pjs.tdd;

public enum Currency {
	
	USD,
	GBP,
	EUR;
	
	public static Currency lookup(Currency currencyToLookup){
		for (Currency currency : Currency.values()) {
			if(currency.equals(currencyToLookup)){
				return currency;
			}
		}
		throw new CurrencyException("Currency not found!");
	}

}
